package com.bajiao.vo.account;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(value="AccountBillAdmin")
public class AccountBillAdmin {

    @ApiModelProperty(value = "主键id")
	private String id;

    @Excel(name = "用户ID", width = 20)
    @ApiModelProperty(value = "用户id")
	private String userId;

    @Excel(name = "昵称", width = 30)
    @ApiModelProperty("昵称")
    private String nickname;

    @Excel(name = "手机号", width = 20)
    @ApiModelProperty("手机号")
    private String mobile;

    @Excel(name = "变动前金额", width = 20)
    @ApiModelProperty(value = "变动前金额")
	private BigDecimal beforeMoney;

    @Excel(name = "变动金额", width = 20)
    @ApiModelProperty(value = "变动金额")
	private BigDecimal changeMoney;

    @Excel(name = "变动后金额", width = 20)
    @ApiModelProperty(value = "变动后金额")
	private BigDecimal afterMoney;

    @Excel(name = "账单分支", width = 15, replace={"收入_1","支出_2"})
    @ApiModelProperty(value = "1:收入 2:支出")
	private Integer billType;

    @ApiModelProperty(value = "1:充值 2:购买优惠券 3:购买商品 4:优惠券退款 5:商品退款 6:注册赠送 7:邀请奖励 99:平台赠送")
	private int type;

    @Excel(name = "账单标题", width = 20)
    @ApiModelProperty(value = "账单标题")
	private String title;

    @Excel(name = "产生时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
}
